package com.itheima.api.returnreason;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.vo.pojo.OmsOrderReturnReason;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface OmsOrderReturnReasonService extends IService<OmsOrderReturnReason> {
    /**
     * 分页查询退货原因
     * @param pageNum
     * @param pageSize
     * @return
     */
    Map  limit(Integer pageNum, Integer pageSize);

    /**
     *批量删除退货原因
     * @param ids
     */
    void deleteByIds(List<Integer> ids);

    /**
     * 修改退货原因启用状态
     * @param status
     * @param ids
     */
    void updateStatus(Integer status, List<Integer> ids);

    /**
     * 修改退货原因
     * @param id
     * @param reason
     */
    void updateReason(Integer id, OmsOrderReturnReason reason);
}
